import guid from '../pages/guid';
import shopIndex from '../pages/shop';
import shopType from '../pages/shop/type'

const routes=[
    {
        path:'/guid',
        component: guid,
        meta: {
            title: '首页'
        }
    },
    {
        path:'/shop',
        component:shopIndex,
        children:[
            {
                path:'type/:id?',
                component: shopType,
                meta: {
                    title: '店铺首页'
                }
            }
        ]
    },
    {
        path:'/',
        redirect: '/guid'
    }
]
export default routes;